﻿<%@ Page Language="C#" AutoEventWireup="true" Inherits="BaseData_ProductList" ValidateRequest="false" Codebehind="ProductList.aspx.cs" %>

<%@ Register Src="../Controls/TYLX_SHANGPINControl.ascx" TagName="TYLX_SHANGPINControl"
    TagPrefix="uc9" %>

<%@ Register Src="../Controls/COMMODITY_AUTO.ascx" TagName="COMMODITY_AUTO" TagPrefix="uc8" %>

<%@ Register Src="../Controls/SHANGPINCOLUMN.ascx" TagName="SHANGPINCOLUMN" TagPrefix="uc7" %>

<%@ Register Src="../Controls/COMMODITY_PICListControl.ascx" TagName="COMMODITY_PICListControl"
    TagPrefix="uc6" %>
    
    
    
 <%@ Register src="../Controls/COMMODITY_LINK.ascx" tagname="COMMODITY_LINK" tagprefix="uc10" %>
<%@ Register src="../Controls/COMMODITY_LINKList.ascx" tagname="COMMODITY_LINKList" tagprefix="uc11" %>
<%@ Register Src="../Controls/TaoBao/TaoBaoTB_BaobeiLink.ascx" TagName="baobeiLink" TagPrefix="uc12" %>

    

<%@ Register Src="../Controls/COMMODITY_EVALListControl.ascx" TagName="COMMODITY_EVALListControl"
    TagPrefix="uc5" %>
<%@ Register Src="../Controls/SPGG2.ascx" TagName="SPGG2" TagPrefix="uc4" %>
<%@ Register Src="../Controls/SPGG1.ascx" TagName="SPGG1" TagPrefix="uc3" %>
<%@ Register Src="../Controls/SHANGPINModelControl.ascx" TagName="SHANGPINModelControl"
    TagPrefix="uc2" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<%@ Register Src="../Controls/SHANGPINListControl.ascx" TagName="SHANGPINListControl"
    TagPrefix="uc1" %>
    
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%--<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 4.0//EN"> --%>
<html>
<head runat="server">
    <title>无标题页</title>
        <script type="text/javascript">
        function sppic()
        {
            var a=document.getElementById("hd_spdm").value;
                window.open ('ProductImg.aspx?spdm='+a, 'newwindow', 'height=300, width=600, top=300, left=300, toolbar=no, menubar=no, scrollbars=yes, resizable=yes,location=no, status=no');
        }
    </script>
    <script type="text/javascript" src="../Include/Js/SocanCode.js"></script>
    <style type="text/css">
        .hidden{visibility:hidden;}
        .tb7 {width:950px; background-color:#999999;}
.bk_left {border-bottom:#999999 1px solid;border-right:#999999 1px solid;border-left:#999999 1px solid;border-top:#999999 0px solid;}
.bk_middle {border-bottom:#999999 1px solid;border-right:#999999 1px solid;border-left:#999999 0px solid;border-top:#999999 0px solid;}
    </style>
</head>
<body>

    <form id="form1" runat="server">
    <div align="Justify">
    <h2>商品目录</h2>
        <div class="menu_bg">
            <asp:DropDownList ID="DropDownList1" runat="server">
                <asp:ListItem Selected="True" Value="0">代码</asp:ListItem>
                <asp:ListItem Value="1">ERP名称</asp:ListItem>
                <asp:ListItem Value="2">电子商务名称</asp:ListItem>
            </asp:DropDownList>
            <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
            <%--上架:<asp:DropDownList ID="dropUp" runat="server">
                <asp:ListItem Value="-1" Text="  "></asp:ListItem>
                <asp:ListItem Value="1" Text="是"></asp:ListItem>
                <asp:ListItem Value="0" Text="否"></asp:ListItem>
            </asp:DropDownList>
            预上架:<asp:DropDownList ID="dropPreUp" runat="server">
                <asp:ListItem Value="-1" Text="  "></asp:ListItem>
                <asp:ListItem Value="1" Text="是"></asp:ListItem>
                <asp:ListItem Value="0" Text="否"></asp:ListItem>
            </asp:DropDownList>&nbsp; --%>
            新品:<asp:DropDownList ID="dropNew" runat="server">
                <asp:ListItem Value="-1" Text="  "></asp:ListItem>
                <asp:ListItem Value="1" Text="是"></asp:ListItem>
                <asp:ListItem Value="0" Text="否"></asp:ListItem>
            </asp:DropDownList>&nbsp; 
            推荐:<asp:DropDownList ID="dropRecommend" runat="server">
                <asp:ListItem Value="-1" Text="  "></asp:ListItem>
                <asp:ListItem Value="1" Text="是"></asp:ListItem>
                <asp:ListItem Value="0" Text="否"></asp:ListItem>
            </asp:DropDownList>&nbsp; 
            促销:<asp:DropDownList ID="dropPromotion" runat="server">
                <asp:ListItem Value="-1" Text="  "></asp:ListItem>
                <asp:ListItem Value="1" Text="是"></asp:ListItem>
                <asp:ListItem Value="0" Text="否"></asp:ListItem>
            </asp:DropDownList>&nbsp; 
            赠品:<asp:DropDownList ID="dropPresent" runat="server">
                <asp:ListItem Value="-1" Text="  "></asp:ListItem>
                <asp:ListItem Value="1" Text="是"></asp:ListItem>
                <asp:ListItem Value="0" Text="否"></asp:ListItem>
            </asp:DropDownList>
            商品类别:<asp:DropDownList ID="SPType" runat="server" DataValueField="SXDM" DataTextField="SXMC"></asp:DropDownList>
            商品属性2:<asp:DropDownList ID="SPSX2" runat="server" DataValueField="SXDM" DataTextField="SXMC"></asp:DropDownList>
            商品属性3:<asp:DropDownList ID="SPSX3" runat="server" DataValueField="SXDM" DataTextField="SXMC"></asp:DropDownList>
            商品属性4:<asp:DropDownList ID="SPSX4" runat="server" DataValueField="SXDM" DataTextField="SXMC"></asp:DropDownList>
            商品属性5:<asp:DropDownList ID="SPSX5" runat="server" DataValueField="SXDM" DataTextField="SXMC"></asp:DropDownList>
            商品属性6:<asp:DropDownList ID="SPSX6" runat="server" DataValueField="SXDM" DataTextField="SXMC"></asp:DropDownList>
            <asp:Label ID="lbStyle" runat="server"></asp:Label>:<asp:DropDownList ID="SXStyle" runat="server" DataValueField="AP1_CODE" DataTextField="AP1_NAME"></asp:DropDownList>
            <asp:Label ID="lbSX2" runat="server"></asp:Label>:<asp:DropDownList ID="SX2" runat="server" DataValueField="AP2_CODE" DataTextField="AP2_NAME"></asp:DropDownList>
            <asp:Label ID="lbSX3" runat="server"></asp:Label>:<asp:DropDownList ID="SX3" runat="server" DataValueField="AP3_CODE" DataTextField="AP3_NAME"></asp:DropDownList>
            <asp:Label ID="lbSX4" runat="server"></asp:Label>:<asp:DropDownList ID="SX4" runat="server" DataValueField="AP4_CODE" DataTextField="AP4_NAME"></asp:DropDownList>
            <asp:Label ID="lbSX5" runat="server"></asp:Label>:<asp:DropDownList ID="SX5" runat="server" DataValueField="AP5_CODE" DataTextField="AP5_NAME"></asp:DropDownList>
            <asp:Label ID="lbSX6" runat="server"></asp:Label>:<asp:DropDownList ID="SX6" runat="server" DataValueField="AP6_CODE" DataTextField="AP6_NAME"></asp:DropDownList>
            
            售价:<asp:TextBox ID="txtSJ1" runat="server" Width="80"></asp:TextBox>元 —> <asp:TextBox ID="txtSJ2" runat="server" Width="80"></asp:TextBox>元

            描述:<asp:TextBox ID="txtMS" runat="server" Width="370px"></asp:TextBox>
            <asp:Button ID="Button1" runat="server" Text="查询" CssClass="input_button" OnClick="Button1_Click" />
        </div>
        <div class="juli"><uc1:SHANGPINListControl ID="SHANGPINListControl1" runat="server" /></div>
        <div class="juli"><webdiyer:AspNetPager ID="AspNetPager1" runat="server" PageSize="30" NumericButtonCount="8"
            ShowCustomInfoSection="left" PagingButtonSpacing="0" ShowInputBox="always" HorizontalAlign="Center"
            SubmitButtonText="转到" NumericButtonTextFormatString="[{0}]" OnPageChanged="AspNetPager1_PageChanged" FirstPageText="首页" LastPageText="末页" NextPageText="下一页" PrevPageText="上一页" SubmitButtonClass="input_button">
        </webdiyer:AspNetPager></div>
        <br />                    
        <div class="left" id="div_info" runat="server">
        <div class="juli">
            <asp:Menu ID="Menu1" BorderWidth="1px" CssClass="spmenu" StaticMenuItemStyle-BackColor="#e7e7e7" StaticMenuStyle-BackColor="#e7e7e7"
                StaticSelectedStyle-BackColor="#CCCCCC" Width="90%" runat="server" Orientation="horizontal"
                StaticEnableDefaultPopOutImage="false" OnMenuItemClick="Menu1_MenuItemClick">
                <Items>
                    <asp:MenuItem Text="基本属性" Value="0" Selected="true"></asp:MenuItem>
                    <asp:MenuItem Text="商品颜色" Value="1"></asp:MenuItem>
                    <asp:MenuItem Text="商品尺码" Value="2"></asp:MenuItem>
                    <asp:MenuItem Text="商品图片" Value="3"></asp:MenuItem>
                    <asp:MenuItem Text="商品评价" Value="4"></asp:MenuItem>
                    <asp:MenuItem Text="商品分类" Value="5"></asp:MenuItem>
                    <asp:MenuItem Text="商品类型" Value="6"></asp:MenuItem>
                    <asp:MenuItem Text="其他信息" Value="7"></asp:MenuItem>
                    <asp:MenuItem Text="商品预上架设置" Value="8"></asp:MenuItem>
                    <asp:MenuItem Text="商品可补货设置" Value="9"></asp:MenuItem>
                    <asp:MenuItem Text="添加关联项" Value="10"></asp:MenuItem>
                  <%-- <asp:MenuItem Text="关联淘宝宝贝" Value="11"></asp:MenuItem> --%>
                </Items>
            </asp:Menu>
            <asp:MultiView ID="MultiView1" runat="server" ActiveViewIndex="0">
                <asp:View ID="Tab1" runat="server">
                    <uc2:SHANGPINModelControl ID="SHANGPINModelControl1" runat="server"></uc2:SHANGPINModelControl>
                </asp:View>
                <asp:View ID="Tab2" runat="server">
                    <uc3:SPGG1 ID="SPGG1_1" runat="server"></uc3:SPGG1>
                </asp:View>
                <asp:View ID="Tab3" runat="server">
                    <uc4:SPGG2 ID="SPGG2_1" runat="server"></uc4:SPGG2>
                </asp:View>
                <asp:View ID="Tab4" runat="server">
                    <div style="text-align:center;"><div id="div_uploadpic" runat="server" class="input_button2"><a href="javascript:void(0);" onclick="sppic();">上传</a></div></div>
                    <div class="juli3"><uc6:COMMODITY_PICListControl ID="COMMODITY_PICListControl1" runat="server" /></div>
                    <webdiyer:AspNetPager ID="AspNetPager3" runat="server" PageSize="16" NumericButtonCount="8"
                        ShowCustomInfoSection="left" PagingButtonSpacing="0" ShowInputBox="always" HorizontalAlign="right"
                        SubmitButtonText="转到" NumericButtonTextFormatString="[{0}]" OnPageChanged="AspNetPager3_PageChanged">
                    </webdiyer:AspNetPager>                    
                </asp:View>
                <asp:View ID="View1" runat="server">
                    <uc5:COMMODITY_EVALListControl id="COMMODITY_EVALListControl1" runat="server">
                    </uc5:COMMODITY_EVALListControl>
                    <webdiyer:AspNetPager ID="AspNetPager2" runat="server" PageSize="16" NumericButtonCount="8"
                        ShowCustomInfoSection="left" PagingButtonSpacing="0" ShowInputBox="always" HorizontalAlign="right"
                        SubmitButtonText="转到" NumericButtonTextFormatString="[{0}]" OnPageChanged="AspNetPager2_PageChanged">
                    </webdiyer:AspNetPager>
                </asp:View>
                <asp:View ID="View2" runat="server">
                    <uc7:SHANGPINCOLUMN ID="SHANGPINCOLU0MN1" runat="server" />
                </asp:View>
                 <asp:View ID="View4" runat="server">
                     <uc9:TYLX_SHANGPINControl ID="TYLX_SHANGPINControl1" runat="server" />
                </asp:View>
                <asp:View ID="View3" runat="server">
                    <uc8:COMMODITY_AUTO ID="COMMODITY_AUTO1" runat="server" />

                </asp:View>      
                <asp:View ID="View5" runat="server">
                    <asp:Panel ID="pnlIsUseColorSize" runat="server" Width="376px">
                        <asp:DataList ID="dlistProduct" runat="server" OnItemCommand="dlistProduct_ItemCommand" OnItemDataBound="dlistProduct_ItemDataBound" CellPadding="0">
                        <HeaderTemplate>
                            <table class="tb7" border="0" cellspacing="1" cellpadding="0">
                                <tr class="z1">
                                    <td class="zt3" width="100">
                                        颜色
                                    </td>
                                    <td class="zt3" width="160">
                                        尺码
                                    </td>
                                    <td class="zt3" width="160">
                                        上架
                                    </td>
                                    <td class="zt3">
                                        预上架

                                    </td>
                                    
                                </tr>
                            </table>
                        </HeaderTemplate>
                        <ItemTemplate>
                            <table width="950" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                    <td width="100" align="center" class="bk_left">
                                        <input id="hidColorCode" type="hidden" runat="server" value='<%# Eval("COLORCODE")%>' />
                                        <%# Eval("ColorName")%>
                                    </td>
                                    <td width="160" align="center" class="bk_middle">
                                        <input id="hidSizeCode" type="hidden" runat="server" value='<%# Eval("SIZECODE")%>' />
                                        <%# Eval("SizeName")%>
                                    </td>
                                    <td width="160" align="center" class="bk_middle">
                                        <asp:CheckBox ID="CheckBox2" runat="server" Checked=' <%# Convert.ToString(Eval("IsUp"))=="1"?true:false %>' Enabled="false"/>
                                    </td>
                                    <td align="center" class="bk_middle">
                                        <asp:CheckBox ID="CheckBox1" runat="server" Checked=' <%# Convert.ToString(Eval("IsPreUp"))=="1"?true:false %>'/>
                                        <asp:Button ID="btnCheck" runat="server" Text="Button" CommandName="check" CssClass="hidden" />
                                        <input id="hidProductUp" type="hidden" runat="server" value='<%# Eval("IsUp")%>' />
                                        <input id="hidIsPreUp" type="hidden" runat="server" value='<%# Eval("IsPreUp")%>' />
                                    </td>
                                </tr>
                            </table>
                        </ItemTemplate>
                    </asp:DataList>
                    <asp:Button ID="btnSubmit" runat="server" CssClass="input_button" Text="保存" OnClick="btnSubmit_Click" />
                    </asp:Panel>
                    <asp:Panel ID="pnlIsUseProduct" runat="server" Width="374px">
                        上 &nbsp;&nbsp; 架：<asp:CheckBox ID="chkUp" runat="server" Enabled="false" /><br />
                        预上架：<asp:CheckBox ID="chkPreUp" runat="server" AutoPostBack="true" OnCheckedChanged="chkPreUp_CheckedChanged" /><br />
                        <asp:Button ID="btnSubmit1" runat="server" Text="保存"  OnClick="btnSubmit1_Click"  CssClass="input_button" /><input id="Hidden1" type="hidden" runat="server" />
                    </asp:Panel>
                </asp:View>  
                <asp:View ID="View6" runat="server">
                    <asp:Panel ID="pnlRestockIsUseColor" runat="server" Width="376px">
                        <asp:DataList ID="dlistRestock" runat="server" CellPadding="0">
                        <HeaderTemplate>
                            <table class="tb7" border="0" cellspacing="1" cellpadding="0">
                                <tr class="z1">
                                    <td class="zt3" width="200">
                                        颜色
                                    </td>
                                    <td class="zt3" width="200">
                                        尺码
                                    </td>
                                    <td class="zt3">
                                        可补货

                                    </td>                                    
                                </tr>
                            </table>
                        </HeaderTemplate>
                        <ItemTemplate>
                            <table width="950" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                    <td width="200" align="center" class="bk_left">
                                        <input id="hidColorCode" type="hidden" runat="server" value='<%# Eval("COLORCODE")%>' />
                                        <%# Eval("ColorName")%>
                                    </td>
                                    <td width="200" align="center" class="bk_middle">
                                        <input id="hidSizeCode" type="hidden" runat="server" value='<%# Eval("SIZECODE")%>' />
                                        <%# Eval("SizeName")%>
                                    </td>
                                    <td align="center" class="bk_middle">
                                        <asp:CheckBox ID="CheckBox2" runat="server" Checked=' <%# Convert.ToString(Eval("ISReStock"))=="1"?true:false %>'/>
                                    </td>
                                </tr>
                            </table>
                        </ItemTemplate>
                    </asp:DataList>
                    <asp:Button ID="btnRestockSubmit1" runat="server"  CssClass="input_button" Text="保存" OnClick="btnRestockSubmit1_Click"/>
                    </asp:Panel>
                    <asp:Panel ID="pnlRestockIsUseProduct" runat="server" Width="374px">
                        可补货：<asp:CheckBox ID="CheckBox3" runat="server" /><br />
                        <asp:Button ID="btnRestockSubmit2" runat="server" Text="保存"  CssClass="input_button" OnClick="btnRestockSubmit2_Click"/>
                    </asp:Panel>

                </asp:View>  
                <asp:View ID="view10" runat=server>
                
             <uc10:COMMODITY_LINK ID="COMMODITY_LINK1" runat="server" />       
                </asp:View>           
                <asp:View ID="viewTB" runat="Server">                  
                   <uc12:baobeiLink ID="baobeiLink1" runat="Server" /> 
                </asp:View>                
            </asp:MultiView>
        </div></div>
        
        <asp:HiddenField ID="hd_spdm" runat="server" Value="" />
      </div>
    </form>
</body>
</html>
